package com.nervenets.template.hibernate.dao;

import com.nervenets.general.hibernate.dao.BaseDao;
import com.nervenets.template.hibernate.domain.user.RoleGroup;

import java.util.List;

public interface RoleGroupDao extends BaseDao<RoleGroup> {
    List<RoleGroup> findAllByParentIdOrderById(long roleParentId);

    RoleGroup findTop1ByOrderById();
}
